home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 January / WPCJAN97.ISO / mgiwjan.dxr / 00011_MGINoiseMove, MGIPosterHighLight.ls < prev    next >
Encoding:
Text File  |  1996-11-07  |  13.0 KB  |  324 lines

  1. on MGINoiseMove
  2.   global MGIIntroCounter, MGINoiseSprite, MGILogoSprite, MGIFoodPosterSprite, MGIFindTV, MGIMasterList, MGILastPosterSprite, MGIInternetTextList, MGIWhichHomeMacList, MGIWhichHomePCList, MGIGETCount, MGISTONEON
  3.   if MGISTONEON = 0 then
  4.     if the mouseUp and (MGIFindTV = 2) then
  5.       set MGIFindTV to 3
  6.     end if
  7.     if rollOver(MGILogoSprite) then
  8.       set the castNum of sprite MGINoiseSprite to 59
  9.       if MGIFindTV = 1 then
  10.         set the castNum of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 8)
  11.         set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 3)
  12.         set the locV of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 4)
  13.         set the ink of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 5)
  14.         set the locH of sprite 28 to 2000
  15.         set the locH of sprite 29 to 2000
  16.         set the ink of sprite MGINoiseSprite to 36
  17.         set the castNum of sprite 47 to the castNum of sprite 47 - 1
  18.         updateStage()
  19.         MGISpinE()
  20.         set the locH of sprite 2 to the mouseH
  21.         set the locV of sprite 2 to the mouseV
  22.       end if
  23.       repeat while rollOver(MGILogoSprite) or rollOver(getAt(getAt(MGIInternetTextList, 1), 1))
  24.         MGISpinE()
  25.         if MGIFindTV = 1 then
  26.           repeat while MGIFindTV = 1
  27.             MGISpinE()
  28.             set the locH of sprite 2 to the mouseH
  29.             set the locV of sprite 2 to the mouseV
  30.             if the mouseDown then
  31.               cursor(200)
  32.               set the locH of sprite 34 to 2000
  33.               set the locH of sprite 2 to 2000
  34.               updateStage()
  35.               repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  36.                 MGISpinE()
  37.                 set g to d - MGIFoodPosterSprite + 1
  38.                 set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 8)
  39.                 set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  40.                 set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  41.                 set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  42.                 updateStage()
  43.                 set the locV of sprite d to 550
  44.                 repeat while the locV of sprite d > (407 + 15)
  45.                   set the locV of sprite d to the locV of sprite d - 15
  46.                   MGISpinE()
  47.                   updateStage()
  48.                 end repeat
  49.                 set the locV of sprite d to 407
  50.                 updateStage()
  51.                 set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  52.                 wait(1)
  53.               end repeat
  54.               repeat with t = 1 to count(MGIMasterList)
  55.                 if count(getAt(MGIMasterList, t)) > 2 then
  56.                   if getAt(getAt(MGIMasterList, t), 5) = 39 then
  57.                     set the ink of sprite getAt(getAt(MGIMasterList, t), 1) to 36
  58.                     setAt(getAt(MGIMasterList, t), 5, 36)
  59.                   end if
  60.                 end if
  61.               end repeat
  62.               set the ink of sprite 1 to 36
  63.               repeat with x = 39 to 47
  64.                 set the ink of sprite x to 36
  65.               end repeat
  66.               cursor(-1)
  67.               set the locH of sprite 34 to 560
  68.               updateStage()
  69.               set MGIFindTV to 2
  70.               cursor(-1)
  71.             end if
  72.           end repeat
  73.         else
  74.           if (MGIFindTV = 3) and the mouseDown then
  75.             cursor(200)
  76.             set MGIIntroCounter to 0
  77.             repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  78.               set g to d - MGIFoodPosterSprite + 1
  79.               set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  80.               set the castNum of sprite d to the castNum of sprite d + 1
  81.               set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  82.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  83.               set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  84.               set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  85.               updateStage()
  86.               repeat with t = 1 to 30
  87.                 MGISpinE()
  88.                 if MGIIntroCounter = 3 then
  89.                   set MGIIntroCounter to 0
  90.                   set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  91.                   updateStage()
  92.                   next repeat
  93.                 end if
  94.                 set MGIIntroCounter to 1 + MGIIntroCounter
  95.                 set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  96.                 updateStage()
  97.               end repeat
  98.               set the castNum of sprite d to the castNum of sprite d - 1
  99.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  100.               set the castNum of sprite MGINoiseSprite to 58
  101.               set MGIIntroCounter to 0
  102.               updateStage()
  103.             end repeat
  104.             cursor(-1)
  105.           end if
  106.         end if
  107.         if MGIIntroCounter = 3 then
  108.           set MGIIntroCounter to 0
  109.           set the castNum of sprite MGINoiseSprite to 59
  110.           updateStage()
  111.           next repeat
  112.         end if
  113.         set MGIIntroCounter to 1 + MGIIntroCounter
  114.         set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  115.         updateStage()
  116.       end repeat
  117.       if MGIFindTV = 1 then
  118.         set the ink of sprite MGINoiseSprite to 39
  119.         set the castNum of sprite 47 to the castNum of sprite 47 + 1
  120.         set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to 2000
  121.         MGISpinE()
  122.         set the locH of sprite 2 to the mouseH
  123.         set the locV of sprite 2 to the mouseV
  124.       end if
  125.     end if
  126.     if not rollOver(MGILogoSprite) then
  127.       set the castNum of sprite MGINoiseSprite to 58
  128.       set MGIIntroCounter to 0
  129.       updateStage()
  130.     end if
  131.   end if
  132. end
  133.  
  134. on MGIPosterHighLight
  135.   global MGIFoodPosterSprite, MGILastPosterSprite, MGINoiseSprite, MGIIntroCounter, MGIInternetTextList, MGILaunchI, IFLCanChange, MGISTONEON, STComp, MGICompOnStage, MGIRadio
  136.   if MGIRadio = 0 then
  137.     if MGILaunchI = 0 then
  138.       repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  139.         if rollOver(d) and not rollOver(34) then
  140.           set g to d - MGIFoodPosterSprite + 1
  141.           set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  142.           set the castNum of sprite d to the castNum of sprite d + 1
  143.           set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  144.           set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  145.           set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  146.           set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  147.           updateStage()
  148.           repeat while rollOver(d)
  149.             if rollOver(33) then
  150.               exit repeat
  151.             end if
  152.             if the mouseDown then
  153.               set MGILaunchI to g
  154.               exit repeat
  155.             end if
  156.             MGISpinE()
  157.             if MGIIntroCounter = 3 then
  158.               set MGIIntroCounter to 0
  159.               set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  160.               updateStage()
  161.               next repeat
  162.             end if
  163.             set MGIIntroCounter to 1 + MGIIntroCounter
  164.             set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  165.             updateStage()
  166.           end repeat
  167.           set the castNum of sprite d to the castNum of sprite d - 1
  168.           set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  169.           set the castNum of sprite MGINoiseSprite to 58
  170.           set MGIIntroCounter to 0
  171.           updateStage()
  172.         end if
  173.         if MGILaunchI <> 0 then
  174.           exit repeat
  175.         end if
  176.       end repeat
  177.     end if
  178.   end if
  179.   if MGILaunchI <> 0 then
  180.     set MGILaunchI to 0
  181.     set IFLCanChange to 0
  182.     if the machineType < 200 then
  183.       set the locH of sprite 48 to 2000
  184.       set the castNum of sprite 36 to 157
  185.       set the locH of sprite 36 to 70
  186.       set the locV of sprite 36 to 166
  187.       set ARTNETUP to 0
  188.       updateStage()
  189.       repeat while 1
  190.         if ARTNETUP = 1 then
  191.           if word the mouseWord of field 157 = "YES" then
  192.             set ARTThisword to the mouseWord
  193.             set the foreColor of word ARTThisword of field 157 to 0
  194.             repeat while word the mouseWord of field 157 = "YES"
  195.               if the mouseDown then
  196.                 set ARTYesOrCancel to 1
  197.                 exit repeat
  198.               end if
  199.             end repeat
  200.             set the foreColor of word ARTThisword of field 157 to 255
  201.           end if
  202.           if word the mouseWord of field 157 = "NO" then
  203.             set ARTThisword to the mouseWord
  204.             set the foreColor of word ARTThisword of field 157 to 0
  205.             repeat while word the mouseWord of field 157 = "NO"
  206.               if the mouseDown then
  207.                 set ARTYesOrCancel to 2
  208.                 exit repeat
  209.                 updateStage()
  210.               end if
  211.             end repeat
  212.             set the foreColor of word ARTThisword of field 157 to 255
  213.           end if
  214.           if ARTYesOrCancel > 0 then
  215.             exit repeat
  216.           else
  217.             if (the mouseCast <> 157) and the mouseDown then
  218.               beep()
  219.             end if
  220.           end if
  221.           next repeat
  222.         end if
  223.         if the mouseUp then
  224.           set ARTNETUP to 1
  225.         end if
  226.       end repeat
  227.       set ARTNETUP to 0
  228.       if ARTYesOrCancel = 2 then
  229.         set the locH of sprite 36 to 2000
  230.         updateStage()
  231.         repeat while the mouseDown
  232.         end repeat
  233.       else
  234.         if MGICompOnStage = 1 then
  235.           set MGISTONEON to 0
  236.           set STComp to 0
  237.           set the locH of sprite 48 to 2000
  238.           set the locH of sprite 22 to 2000
  239.           set the locH of sprite 9 to 2000
  240.           set MGICompOnStage to 4
  241.           forget(window "STONEY")
  242.           updateStage()
  243.         end if
  244.         set the castNum of sprite 36 to 155
  245.         set the locH of sprite 36 to 70
  246.         set the locV of sprite 36 to 195
  247.         updateStage()
  248.         repeat while the mouseDown
  249.         end repeat
  250.       end if
  251.     else
  252.       set the locH of sprite 48 to 2000
  253.       set the castNum of sprite 36 to 157
  254.       set the locH of sprite 36 to 70
  255.       set the locV of sprite 36 to 166
  256.       set ARTNETUP to 0
  257.       updateStage()
  258.       repeat while 1
  259.         if ARTNETUP = 1 then
  260.           if word the mouseWord of field 157 = "YES" then
  261.             set ARTThisword to the mouseWord
  262.             set the foreColor of word ARTThisword of field 157 to 0
  263.             repeat while word the mouseWord of field 157 = "YES"
  264.               if the mouseDown then
  265.                 set ARTYesOrCancel to 1
  266.                 exit repeat
  267.               end if
  268.             end repeat
  269.             set the foreColor of word ARTThisword of field 157 to 255
  270.           end if
  271.           if word the mouseWord of field 157 = "NO" then
  272.             set ARTThisword to the mouseWord
  273.             set the foreColor of word ARTThisword of field 157 to 0
  274.             repeat while word the mouseWord of field 157 = "NO"
  275.               if the mouseDown then
  276.                 set ARTYesOrCancel to 2
  277.                 exit repeat
  278.                 updateStage()
  279.               end if
  280.             end repeat
  281.             set the foreColor of word ARTThisword of field 157 to 255
  282.           end if
  283.           if ARTYesOrCancel > 0 then
  284.             exit repeat
  285.           else
  286.             if (the mouseCast <> 157) and the mouseDown then
  287.               beep()
  288.             end if
  289.           end if
  290.           next repeat
  291.         end if
  292.         if the mouseUp then
  293.           set ARTNETUP to 1
  294.         end if
  295.       end repeat
  296.       set ARTNETUP to 0
  297.       if ARTYesOrCancel = 2 then
  298.         set the locH of sprite 36 to 2000
  299.         updateStage()
  300.         repeat while the mouseDown
  301.         end repeat
  302.       else
  303.         if MGICompOnStage = 1 then
  304.           set MGISTONEON to 0
  305.           set STComp to 0
  306.           set the locH of sprite 48 to 2000
  307.           set the locH of sprite 22 to 2000
  308.           set the locH of sprite 9 to 2000
  309.           set MGICompOnStage to 4
  310.           forget(window "STONEY")
  311.           updateStage()
  312.         end if
  313.         set the castNum of sprite 36 to 155
  314.         set the locH of sprite 36 to 70
  315.         set the locV of sprite 36 to 195
  316.         updateStage()
  317.         repeat while the mouseDown
  318.         end repeat
  319.         StartBrowser("html/room/index.htm")
  320.       end if
  321.     end if
  322.   end if
  323. end
  324.